package cn.stylefeng.guns.modular.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 商品管理
 * </p>
 *
 * @author lauyang
 * @since 2020-04-17
 */
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品价格
     */
    @TableField("goods_price")
    private Double goodsPrice;

    /**
     * 销量
     */
    @TableField("goods_sale_num")
    private Long goodsSaleNum;

    /**
     * 商铺名
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 商铺电话
     */
    @TableField("shop_tel")
    private String shopTel;

    /**
     * 商铺地址
     */
    @TableField("shop_addr")
    private String shopAddr;

    /**
     * 商品属性
     */
    @TableField("goods_attribute")
    private String goodsAttribute;

    /**
     * 封面图
     */
    @TableField("cover_img_url")
    private String coverImgUrl;

    /**
     * 是否禁用
     */
    @TableField("dis_flag")
    private String disFlag;

    /**
     * 是否推荐到首页Y N
     */
    @TableField("index_flag")
    private String indexFlag;

    /**
     * 首页轮播图
     */
    @TableField("goods_index_img_url")
    private String goodsIndexImgUrl;

    /**
     * 商品轮播图
     */
    @TableField("goods_banner_img_url")
    private String goodsBannerImgUrl;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Long getGoodsSaleNum() {
        return goodsSaleNum;
    }

    public void setGoodsSaleNum(Long goodsSaleNum) {
        this.goodsSaleNum = goodsSaleNum;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopTel() {
        return shopTel;
    }

    public void setShopTel(String shopTel) {
        this.shopTel = shopTel;
    }

    public String getShopAddr() {
        return shopAddr;
    }

    public void setShopAddr(String shopAddr) {
        this.shopAddr = shopAddr;
    }

    public String getGoodsAttribute() {
        return goodsAttribute;
    }

    public void setGoodsAttribute(String goodsAttribute) {
        this.goodsAttribute = goodsAttribute;
    }

    public String getCoverImgUrl() {
        return coverImgUrl;
    }

    public void setCoverImgUrl(String coverImgUrl) {
        this.coverImgUrl = coverImgUrl;
    }

    public String getDisFlag() {
        return disFlag;
    }

    public void setDisFlag(String disFlag) {
        this.disFlag = disFlag;
    }

    public String getIndexFlag() {
        return indexFlag;
    }

    public void setIndexFlag(String indexFlag) {
        this.indexFlag = indexFlag;
    }

    public String getGoodsIndexImgUrl() {
        return goodsIndexImgUrl;
    }

    public void setGoodsIndexImgUrl(String goodsIndexImgUrl) {
        this.goodsIndexImgUrl = goodsIndexImgUrl;
    }

    public String getGoodsBannerImgUrl() {
        return goodsBannerImgUrl;
    }

    public void setGoodsBannerImgUrl(String goodsBannerImgUrl) {
        this.goodsBannerImgUrl = goodsBannerImgUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "Goods{" +
        "id=" + id +
        ", goodsName=" + goodsName +
        ", goodsPrice=" + goodsPrice +
        ", goodsSaleNum=" + goodsSaleNum +
        ", shopName=" + shopName +
        ", shopTel=" + shopTel +
        ", shopAddr=" + shopAddr +
        ", goodsAttribute=" + goodsAttribute +
        ", coverImgUrl=" + coverImgUrl +
        ", disFlag=" + disFlag +
        ", indexFlag=" + indexFlag +
        ", goodsIndexImgUrl=" + goodsIndexImgUrl +
        ", goodsBannerImgUrl=" + goodsBannerImgUrl +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}
